home *** CD-ROM | disk | FTP | other *** search
- Path: qualcomm.com!usenet
- From: nabbasi@qualcomm.com (Nasser Abbasi)
- Newsgroups: comp.lang.c++
- Subject: Re: Why Do I Use An Ampersand in Member Class Parameters?
- Date: 1 Feb 1996 02:44:08 GMT
- Organization: QUALCOMM
- Distribution: world
- Message-ID: <4ep9do$a31@qualcomm.com>
- References: <4emnv2$n5o@alcor.usc.edu> <4enaak$o1h@ubszh.fh.zh.ubs.com>
- NNTP-Posting-Host: nabbasi.qualcomm.com
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <4enaak$o1h@ubszh.fh.zh.ubs.com>, jis@ubszh.net.ch says...
- >
- >In article <4emnv2$n5o@alcor.usc.edu>, wawda@alcor.usc.edu (Abu Wawda)
- writes:
- >|> class Simple
- >|> {
- >|> public:
- >|> Simple();
- >|> int operator += (const Simple &);
- >|> private:
- >|> int data;
- >|> };
- >|>
- >|> I have seen many examples of this but I what I don't understand is
- why
- >|> there is an amersand after Simple? I would wind up implementating the
- >|> function as something like the following:
- >
- >My suggestion is you obtain a C++ text book -- any C++ text book -- and
- >read it.
- >
- >You might as well ask what is "int".
- >
- >Ian
-
- My suggestion Ian is that if you do not have anything useful to answer
- people with, then do not bother answering just to tell them off.
-
- People are free to ask any questions they want, you are free to ignor
- the question if you want.
-
- I just could never understand why some people like to come in and post a
- reply just to tell other people how silly the question they posted is.
-
- amazing.
-
- Nasser
-
-
-